package cn.melonlib.nars.names.model.entity;

import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Type;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("腾讯云文件")
@Entity(name = "MelonTxYun")
@Table(name = "nars_melon_tx_yun")
public class MelonTxYun extends MelonNames{

    @ModelComment("文件信息")
    @Column@Lob@Basic(fetch = FetchType.LAZY)@Type(type = "org.hibernate.type.TextType")
    private String body;

    @ModelComment("文件配置")
    @Column@Lob@Basic(fetch = FetchType.LAZY)@Type(type = "org.hibernate.type.TextType")
    private String config;
}
